{% extends "admin/base.html" %}
{% block title %}-成绩管理{% endblock %}
{% block grade %}current-item{% endblock %}
{% block mainbody %}
    <div class="main">
    <center>
        <h1>成绩管理</h1>
        <br>
        <h3><a href="/admin/insertgrade">添加成绩</a></h3>
        <br>

        <table class="table-user" border="1">
            <tr>
                <th>id</th>
                <th>user_id</th>
                <th>grade</th>
                <th>操作</th>
                <th>操作</th>
            </tr>
            {% for item in data %}
                <tr>
                    <th>{{item.pk}}</th>
                    <th>{{item.fields.user}}</th>
                    <th>{{item.fields.grade}}</th>
                    <th><a href="/admin/updateuser?userid={{ item.pk }}">编辑</a></th>
                    <th><a href="/admin/deleteuser?userid={{ item.pk }}">删除</a></th>
                </tr>
            {% endfor %}

        </table>

    </center>
    </div>
{% endblock %}

